home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / developer-tools / basic / blitzbasic / bb_bugs / dim.bb < prev    next >
Unknown  |  1996-02-26  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% TrID Flexible Line Interpretation bitmap default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 3b 74 68 69 73 20 69 | 73 20 61 77 66 75 6c 20 |.;this i|s awful |
|00000010| 66 6f 72 20 73 74 72 75 | 63 74 75 72 65 64 20 70 |for stru|ctured p|
|00000020| 72 6f 67 72 61 6d 6d 65 | 72 73 20 6c 69 6b 65 20 |rogramme|rs like |
|00000030| 75 73 20 21 21 00 3b 74 | 72 79 20 74 6f 20 72 75 |us !!.;t|ry to ru|
|00000040| 6e 20 74 68 65 20 63 6f | 64 65 20 77 69 74 68 20 |n the co|de with |
|00000050| 61 6e 64 20 77 69 74 68 | 6f 75 74 20 72 75 6e 74 |and with|out runt|
|00000060| 69 6d 65 20 65 72 72 6f | 72 20 63 68 65 63 6b 69 |ime erro|r checki|
|00000070| 6e 67 00 3b 61 6e 64 20 | 79 6f 75 27 6c 6c 20 73 |ng.;and |you'll s|
|00000080| 65 65 20 73 6f 6d 65 20 | 64 69 66 66 65 72 65 6e |ee some |differen|
|00000090| 63 69 65 73 2e 00 00 3b | 74 68 69 73 20 62 75 67 |cies...;|this bug|
|000000a0| 20 63 61 75 73 65 73 20 | 6c 6f 74 73 20 6f 66 20 | causes |lots of |
|000000b0| 74 72 6f 75 62 6c 65 73 | 2c 20 65 78 70 65 63 69 |troubles|, expeci|
|000000c0| 61 6c 6c 79 20 69 6e 20 | 63 6f 6d 70 6c 65 78 20 |ally in |complex |
|000000d0| 70 72 6f 6a 65 63 74 20 | 64 65 76 65 6c 6f 70 6d |project |developm|
|000000e0| 65 6e 74 00 3b 6c 69 6b | 65 20 6f 75 72 73 2c 20 |ent.;lik|e ours, |
|000000f0| 62 65 63 61 75 73 65 20 | 79 6f 75 20 68 61 76 65 |because |you have|
|00000100| 20 74 6f 20 64 65 63 6c | 61 72 65 20 73 68 61 72 | to decl|are shar|
|00000110| 65 64 20 6c 6f 74 73 20 | 6f 66 20 61 72 72 61 79 |ed lots |of array|
|00000120| 73 20 69 6e 20 66 75 6e | 63 74 69 6f 6e 73 00 3b |s in fun|ctions.;|
|00000130| 69 66 20 79 6f 75 20 64 | 6f 6e 27 74 20 77 61 6e |if you d|on't wan|
|00000140| 74 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 74 |t your p|rogram t|
|00000150| 6f 20 63 72 61 73 68 20 | 62 65 63 61 75 73 65 20 |o crash |because |
|00000160| 6f 66 20 74 68 65 20 6c | 61 63 6b 20 6f 66 20 73 |of the l|ack of s|
|00000170| 74 61 63 6b 20 73 70 61 | 63 65 2e 00 3b 69 74 20 |tack spa|ce..;it |
|00000180| 69 73 20 75 73 65 66 75 | 6c 20 74 6f 20 66 72 65 |is usefu|l to fre|
|00000190| 65 20 61 6c 6c 20 74 68 | 65 20 4c 4f 43 41 4c 20 |e all th|e LOCAL |
|000001a0| 73 74 75 66 66 2c 20 62 | 65 66 6f 72 65 20 65 78 |stuff, b|efore ex|
|000001b0| 69 74 69 6e 67 20 61 20 | 66 75 6e 63 74 69 6f 6e |iting a |function|
|000001c0| 20 28 61 74 20 6c 61 73 | 74 00 3b 69 74 20 69 73 | (at las|t.;it is|
|000001d0| 20 4c 4f 43 41 4c 20 61 | 6e 64 20 6e 6f 20 6f 6e | LOCAL a|nd no on|
|000001e0| 65 20 6c 6f 6f 6b 73 20 | 61 74 20 61 20 4c 4f 43 |e looks |at a LOC|
|000001f0| 41 4c 20 61 72 72 61 79 | 20 6f 72 20 6f 74 68 65 |AL array| or othe|
|00000200| 72 20 4c 4f 43 41 4c 20 | 6d 65 6d 6f 72 79 2c 20 |r LOCAL |memory, |
|00000210| 66 72 6f 6d 20 6f 75 74 | 73 69 64 65 00 3b 74 68 |from out|side.;th|
|00000220| 65 20 66 75 6e 63 74 69 | 6f 6e 29 00 00 00 00 23 |e functi|on)....#|
|00000230| 45 52 52 4f 52 5f 44 45 | 4d 4f 3d 31 00 00 00 80 |ERROR_DE|MO=1....|
|00000240| 1c 20 23 45 52 52 4f 52 | 5f 44 45 4d 4f 00 00 20 |. #ERROR|_DEMO.. |
|00000250| 20 80 33 2e 6c 00 20 20 | 80 04 20 61 2e 6c 28 31 | .3.l. |.. a.l(1|
|00000260| 30 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0) | |
|00000270| 20 3b 2a 2a 2a 20 6e 6f | 72 6d 61 6c 20 61 72 72 | ;*** no|rmal arr|
|00000280| 61 79 20 64 65 63 6c 61 | 72 61 74 69 6f 6e 00 00 |ay decla|ration..|
|00000290| 20 20 80 08 20 73 7b 7d | 00 20 20 20 20 80 04 20 | .. s{}|. .. |
|000002a0| 62 2e 6c 28 31 30 30 29 | 20 20 20 20 20 20 20 20 |b.l(100)| |
|000002b0| 20 20 20 20 3b 2a 2a 2a | 20 61 20 73 74 61 74 65 | ;***| a state|
|000002c0| 6d 65 6e 74 20 74 68 61 | 74 20 75 73 65 73 20 61 |ment tha|t uses a|
|000002d0| 20 6c 6f 63 61 6c 20 61 | 72 72 61 79 00 20 20 20 | local a|rray. |
|000002e0| 20 3b 3b 3b 3b 3b 3b 00 | 20 20 20 20 3b 43 4f 44 | ;;;;;;.| ;COD|
|000002f0| 45 3b 00 20 20 20 20 3b | 3b 3b 3b 3b 3b 00 20 20 |E;. ;|;;;;;. |
|00000300| 80 02 20 80 08 00 00 20 | 20 80 08 20 63 7b 7d 20 |.. .... | .. c{} |
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 2a 2a 2a | | ;***|
|00000320| 20 74 68 65 20 73 75 62 | 2d 63 61 6c 6c 65 72 00 | the sub|-caller.|
|00000330| 20 20 20 20 80 16 20 69 | 3d 30 20 80 18 20 31 30 | .. i|=0 .. 10|
|00000340| 30 30 00 20 20 20 20 20 | 20 73 7b 7d 20 20 20 20 |00. | s{} |
|00000350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000370| 20 20 20 3b 2a 2a 2a 20 | 68 65 72 65 20 69 73 20 | ;*** |here is |
|00000380| 74 68 65 20 63 61 6c 6c | 00 20 20 20 20 20 20 dd |the call|. .|
|00000390| 82 20 22 52 65 6d 61 69 | 6e 69 6e 67 20 22 2c fe |. "Remai|ning ",.|
|000003a0| 9a 28 30 29 2c 22 20 42 | 79 74 65 73 22 20 3b 2a |.(0)," B|ytes" ;*|
|000003b0| 2a 2a 20 73 68 6f 77 20 | 28 64 65 63 72 65 61 73 |** show |(decreas|
|000003c0| 69 6e 67 29 20 66 72 65 | 65 20 6d 65 6d 6f 72 79 |ing) fre|e memory|
|000003d0| 20 21 00 20 20 20 20 80 | 17 20 69 00 20 20 80 02 | !. .|. i. ..|
|000003e0| 20 80 08 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | .. | |
|000003f0| 3b 2a 2a 2a 20 68 65 72 | 65 20 62 6c 69 74 7a 20 |;*** her|e blitz |
|00000400| 72 65 6c 65 61 73 65 73 | 20 61 6c 6c 20 74 68 65 |releases| all the|
|00000410| 20 6d 65 6d 6f 72 79 00 | 00 20 20 3b 4d 41 49 4e | memory.|. ;MAIN|
|00000420| 00 20 20 ff 8c 30 00 20 | 20 dd 82 20 22 53 74 61 |. ..0. | .. "Sta|
|00000430| 72 74 69 6e 67 20 77 69 | 74 68 20 22 2c fe 9a 28 |rting wi|th ",..(|
|00000440| 30 29 2c 22 20 42 79 74 | 65 73 22 00 20 20 63 7b |0)," Byt|es". c{|
|00000450| 7d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |} | |
|00000460| 20 20 20 20 20 20 20 20 | 3b 2a 2a 2a 20 74 68 65 | |;*** the|
|00000470| 20 6d 61 69 6e 20 63 61 | 6c 6c 65 72 00 20 20 dd | main ca|ller. .|
|00000480| 82 20 22 45 78 69 74 69 | 6e 67 20 77 69 74 68 20 |. "Exiti|ng with |
|00000490| 22 2c fe 9a 28 30 29 2c | 22 20 42 79 74 65 73 22 |",..(0),|" Bytes"|
|000004a0| 00 20 20 ff 8c 30 00 20 | 20 80 0a 00 20 20 80 02 |. ..0. | ... ..|
|000004b0| 00 00 00 80 1e 00 00 00 | 20 20 80 33 2e 6c 00 00 |........| .3.l..|
|000004c0| 20 20 80 08 20 73 7b 7d | 00 20 20 20 20 80 04 20 | .. s{}|. .. |
|000004d0| 62 2e 6c 28 31 30 30 29 | 20 20 20 20 20 20 20 20 |b.l(100)| |
|000004e0| 20 20 20 20 3b 2a 2a 2a | 20 61 20 73 74 61 74 65 | ;***| a state|
|000004f0| 6d 65 6e 74 20 74 68 61 | 74 20 75 73 65 73 20 61 |ment tha|t uses a|
|00000500| 20 6c 6f 63 61 6c 20 61 | 72 72 61 79 00 20 20 20 | local a|rray. |
|00000510| 20 3b 3b 3b 3b 3b 3b 00 | 20 20 20 20 3b 43 4f 44 | ;;;;;;.| ;COD|
|00000520| 45 3b 00 20 20 20 20 3b | 3b 3b 3b 3b 3b 00 20 20 |E;. ;|;;;;;. |
|00000530| 80 02 20 80 08 00 00 20 | 20 80 04 20 61 2e 6c 28 |.. .... | .. a.l(|
|00000540| 31 30 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |10) | |
|00000550| 20 20 3b 2a 2a 2a 20 6e | 6f 72 6d 61 6c 20 61 72 | ;*** n|ormal ar|
|00000560| 72 61 79 20 64 65 63 6c | 61 72 61 74 69 6f 6e 00 |ray decl|aration.|
|00000570| 00 20 20 80 08 20 63 7b | 7d 20 20 20 20 20 20 20 |. .. c{|} |
|00000580| 20 20 20 20 20 20 3b 2a | 2a 2a 20 74 68 65 20 73 | ;*|** the s|
|00000590| 75 62 2d 63 61 6c 6c 65 | 72 00 20 20 20 20 80 16 |ub-calle|r. ..|
|000005a0| 20 69 3d 30 20 80 18 20 | 31 30 30 30 00 20 20 20 | i=0 .. |1000. |
|000005b0| 20 20 20 73 7b 7d 20 20 | 20 20 20 20 20 20 20 20 | s{} | |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 2a 2a | | ;**|
|000005e0| 2a 20 68 65 72 65 20 69 | 73 20 74 68 65 20 63 61 |* here i|s the ca|
|000005f0| 6c 6c 00 20 20 20 20 20 | 20 dd 82 20 22 52 65 6d |ll. | .. "Rem|
|00000600| 61 69 6e 69 6e 67 20 22 | 2c fe 9a 28 30 29 2c 22 |aining "|,..(0),"|
|00000610| 20 42 79 74 65 73 22 20 | 3b 2a 2a 2a 20 73 68 6f | Bytes" |;*** sho|
|00000620| 77 20 66 72 65 65 20 6d | 65 6d 6f 72 79 20 28 6e |w free m|emory (n|
|00000630| 6f 20 61 72 72 61 79 2d | 6f 6e 2d 73 74 61 63 6b |o array-|on-stack|
|00000640| 20 70 72 6f 62 6c 65 6d | 73 29 21 00 20 20 20 20 | problem|s)!. |
|00000650| 80 17 20 69 00 20 20 80 | 02 20 80 08 20 20 20 20 |.. i. .|. .. |
|00000660| 20 20 20 20 20 20 20 20 | 20 3b 2a 2a 2a 20 68 65 | | ;*** he|
|00000670| 72 65 20 62 6c 69 74 7a | 20 65 78 69 74 73 20 74 |re blitz| exits t|
|00000680| 68 65 20 73 74 61 74 65 | 6d 65 6e 74 00 00 20 20 |he state|ment.. |
|00000690| 3b 4d 41 49 4e 00 20 20 | ff 8c 30 00 20 20 dd 82 |;MAIN. |..0. ..|
|000006a0| 20 22 53 74 61 72 74 69 | 6e 67 20 77 69 74 68 20 | "Starti|ng with |
|000006b0| 22 2c fe 9a 28 30 29 2c | 22 20 42 79 74 65 73 22 |",..(0),|" Bytes"|
|000006c0| 00 20 20 63 7b 7d 20 20 | 20 20 20 20 20 20 20 20 |. c{} | |
|000006d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 2a 2a | | ;**|
|000006e0| 2a 20 74 68 65 20 6d 61 | 69 6e 20 63 61 6c 6c 65 |* the ma|in calle|
|000006f0| 72 00 20 20 dd 82 20 22 | 45 78 69 74 69 6e 67 20 |r. .. "|Exiting |
|00000700| 77 69 74 68 20 22 2c fe | 9a 28 30 29 2c 22 20 42 |with ",.|.(0)," B|
|00000710| 79 74 65 73 22 00 20 20 | ff 8c 30 00 20 20 80 0a |ytes". |..0. ..|
|00000720| 00 20 20 80 02 00 00 00 | 80 1f 00 00 00 |. .....|..... |
+--------+-------------------------+-------------------------+--------+--------+